﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web
{
    public partial class Top : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["login"] != null)
                {
                    string typelogin = Session["login"].ToString().Split('|')[1];
                    if (typelogin == "stu")
                    {
                        string stuId = Session["login"].ToString().Split('|')[0];
                        Maticsoft.Model.studentInfo s = new Maticsoft.BLL.studentInfo().GetModel(int.Parse(stuId));
                        this.lbl_welcome.Text = "欢迎您：" + s.stuName + "<br/>单位名称：" + s.stuAddress + "<br/>身份证号：" + s.stuNum ;
                    }
                }
                else
                {
                    this.lbl_welcome.Text = "";
                }                
            }
        }       
    }
}